# Defining a Public Directory service

Public Directory provides access to corporate or public directory services. It functions as an Lightweight Directory Access Protocol client (LDAPv2 or LDAPv3). You must first create and configure the service with Avaya one-X Agent to be able to import or search a contact in the public directory (LDAP).

1. On the top bar, select Settings > System Settings > Directory.
2. In the Directory panel:
   1. Click Add.
   2. Double-click the untitled item and rename the item.
   3. In the Server Address field, enter the network domain or IP address of the Public Directory server.
   4. In the Port field, enter the port number as `389`.
   5. In the Login field, enter a valid user name in this field (If the Public Directory server requires authorization).
   6. In the Password field, enter the password for the user name specified in the Login field.

      If you are unsure of the settings for your Public Directory server, contact the administrator of that system.

   7. In the Search Root field, specify an LDAP format string representing the information type.

      For example, `ou=people, o=mycompany.com` specifies that information under the organization unit of “people” within the organization of “mycompany.com” is used for the search. Refer to the documentation for your LDAP system and company database configuration for more information on Base DN or Search Root strings.

   8. In the Time Out field, specify the search time out in seconds, for example enter `30`.
   9. In the Max Entry field, specify the maximum entry to return, for example, `1234`.
   10. In the Bind Options field, choose an appropriate option.
3. Click OK.

   The system creates a public directory to the list of available services and closes the Directory dialog box.

## Example

Related information
Directory panel field descriptions
©2011, Avaya Inc. All Rights Reserved.